#include "widget.h"
#include "ui_widget.h"

#include <QDebug>


void Widget::oncurrentIndexChanged(QString string)
{
    qDebug()<<string;
}

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    connect(ui->comboBox,SIGNAL(currentIndexChanged(QString)),this,SLOT(oncurrentIndexChanged(QString)));
}

Widget::~Widget()
{
    delete ui;
}

